import { ThreeObjectComponent } from "../component/ThreeObjectComponent";
import { SizeComponent } from "../component/SizeComponent";
import { PositionComponent } from "../component/PositionComponent";
import { DItem } from "../DList";
import { IdInstance } from "../util/IdInstance";

export class Entity extends DItem {
    id: number;
    gameObject: ThreeObjectComponent = new ThreeObjectComponent();
    position: PositionComponent = new PositionComponent();
    size: SizeComponent = new SizeComponent();
    constructor() {
        super();
        this.gameObject.entity = this;
        this.position.entity = this;
        this.size.entity = this;
        this.id = IdInstance.getId();
    }

}

